<!DOCTYPE html>
<html lang="en">
<head>
    <title>南京大学金陵学院在线测试系统</title>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="icon" href="img/123.ico" type="img/x-ico"/>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/bootstrap-responsive.min.css"/>
    <link rel="stylesheet" href="css/matrix-style.css"/>
    <link rel="stylesheet" href="css/matrix-media.css"/>
    <link rel="stylesheet" href="css/uniform.css"/>
    <link rel="stylesheet" href="font-awesome/css/font-awesome.css"/>
</head>
<body>
<!--Header-part-->
<div id="header">
    <h1><a>南京大学金陵学院在线测试系统</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
    <ul class="nav">
        <li class="dropdown" id="profile-messages">
            <a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle">
                <i class="icon icon-user"></i>&nbsp;
                <span class="text" id="welcome">欢迎你，管理员</span>&nbsp;
                <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
                <li><a class="menu_a" link="page/other/personalInfo.html"><i class="icon-user"></i>个人资料</a></li>
            </ul>
        </li>
        <li class=""><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">&nbsp;设置</span></a></li>
        <li class=""><a title="" onclick="outLogin()"><i class="icon icon-share-alt"></i> <span
                class="text">&nbsp;退出系统</span></a></li>
    </ul>
</div>
<!--close-top-Header-menu-->

<!--sidebar-menu-->
<div id="sidebar" style="OVERFLOW-Y: auto; OVERFLOW-X:hidden;">
    <ul>
        <li class="submenu">
            <a href="#">
                <i class="icon icon-table"></i>
                <span>通知管理</span>
            </a>
            <ul>
                <li><a class="menu_a" link="./page/noticeManage/notice.html"><i class="icon icon-caret-right"></i>通知管理</a></li>
            </ul>
        </li>
        <li class="submenu">
            <a href="#">
                <i class="icon icon-table"></i>
                <span>用户管理</span>
            </a>
            <ul>
                <li><a class="menu_a" link="./page/userManage/teacher.html"><i class="icon icon-caret-right"></i>教师账户</a></li>
                <li><a class="menu_a" link="./page/userManage/student.html"><i class="icon icon-caret-right"></i>学生账户</a></li>
            </ul>
        </li>
        <li class="submenu">
            <a href="#">
                <i class="icon icon-table"></i>
                <span>专业管理</span>
            </a>
            <ul>
                <li><a class="menu_a" link="./page/majorManage/major.html"><i class="icon icon-caret-right"></i>年级专业</a></li>
            </ul>
        </li>
    </ul>
</div>
<!--sidebar-menu-->

<!--main-container-part-->
<div id="content">
    <!--breadcrumbs-->
    <div id="content-header">
        <div id="breadcrumb">
            <a href="index.html" title="返回首页" class="tip-right"><i class="icon-home"></i>首页</a>
            <a id="ref" title="刷新当前页面" class="tip-left" style="float: right"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <!--End-breadcrumbs-->
    <iframe src="index2.html" id="iframe-main" frameborder="0" style="width:100%;"></iframe>
</div>
<!--end-main-container-part-->

<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/jquery.ui.custom.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/nicescroll/jquery.nicescroll.min.js"></script>
<script src="js/matrix.js"></script>


<script type="text/javascript">

    //初始化相关元素高度
    function init() {
        $("body").height($(window).height() - 80);
        $("#iframe-main").height($(window).height() - 90);
        $("#sidebar").height($(window).height() - 50);
    }

    $(function () {
        init();
        $(window).resize(function () {
            init();
        });
    });
    // uniform使用示例：
    // $.uniform.update($(this).attr("checked", true));

    $("#ref").click(function () {
        document.getElementById('iframe-main').contentWindow.location.reload(true);
    });
    
    function outLogin() {
        $(function() {
            $.ajax({
                url: 'user/loginOut.do',
                type: 'post',
                success: function() {
                    window.location.href = "login.html";
                },
                error: function() {}
            });
        });
    }
</script>
</body>
</html>
